<?php if($sf_user->isAuthenticated()): ?><br/>
<div style="clear:both;">
<?php echo $sf_user->getGuardUser()->hasPermission('post_message') ? '<a class="btn primary" href="'.url_for("post_message", $ktd_topic).'">Répondre</a>' : '' ?>
  <?php echo $sf_user->getGuardUser()->hasPermission('delete_topic_all') ? '<a onclick="return confirm(\'Supprimer le sujet ?\')" class="btn danger" href="'.url_for("delete_topic", $ktd_topic).'">Effacer</a>' : '' ?>
</div><br/>
<?php endif; ?>